<?php
/**
 * (commands) Amazon订单物流同步
 */
namespace App\Console\Commands\SpApi\Outbound;

use App\Logic\Amazon\Api\CustomerOutBoundWork;
use Illuminate\Console\Command;
class GetOrdersByCon extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'sp-order:get-outbounds-con {account_id} {delivery_order_no}';

    /**
     * The console command description.
     * @var string
     */
    protected $description = 'exe func';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $accountId = $this->argument('account_id');
        $deliveryOrderNo = $this->argument('delivery_order_no');
        CustomerOutBoundWork::grabByCon($accountId, $deliveryOrderNo);
        $this->info('finish！');
    }
}
